package com.esun.payment_api.mapper;

import com.esun.payment_api.domain.SysDictData;
import com.esun.payment_api.domain.SysDictDataExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SysDictDataMapper {
    long countByExample(SysDictDataExample example);

    int deleteByExample(SysDictDataExample example);

    int deleteByPrimaryKey(Short id);

    int insert(SysDictData record);

    int insertSelective(SysDictData record);

    List<SysDictData> selectByExample(SysDictDataExample example);

    SysDictData selectByPrimaryKey(Short id);

    int updateByExampleSelective(@Param("record") SysDictData record, @Param("example") SysDictDataExample example);

    int updateByExample(@Param("record") SysDictData record, @Param("example") SysDictDataExample example);

    int updateByPrimaryKeySelective(SysDictData record);

    int updateByPrimaryKey(SysDictData record);

    //根据id软删
    int deleteById(Short id);

    //--注释：横向只有部门助理能选择
    //--and (dict_value != '横向' or exists (select 1 from SYS_USER_ROLE where USER_ID = #{userId} and ROLE_ID = 81))
    List<SysDictData> getDkBusinessType(Short userId);
}